package priv.xml;

import org.springframework.beans.factory.annotation.Autowired;

public class MiShu {
	private String name;
	private String sex;
	private Integer age;
	@Autowired
	private SiJi Zhangfu;
	public MiShu(String name,String sex,Integer age) {
		this.name=name;
		this.age=age;
		this.sex=sex;
	}
	public MiShu() {
		
	}
	public String getName() {
		return name;
	}
	public void setName(String name) {
		this.name = name;
	}
	public String getSex() {
		return sex;
	}
	public void setSex(String sex) {
		this.sex = sex;
	}
	public Integer getAge() {
		return age;
	}
	public void setAge(Integer age) {
		this.age = age;
	}
	
	public SiJi getZhangfu() {
		return Zhangfu;
	}
	public void setZhangfu(SiJi zhangfu) {
		Zhangfu = zhangfu;
	}
	@Override
	public String toString() {
		return "MiShu [name=" + name + ", sex=" + sex + ", age=" + age + ", Zhangfu=" + Zhangfu.getName() + "]";
	}
	
}
